package cn.edu.hubu.hubuhotel.mapper;

import cn.edu.hubu.hubuhotel.entity.Reserve;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReserveMapper {

    public List<Reserve> selectByAandP(@Param("account") String account, @Param("pwd") String pwd) ;

    public int insertReserve(Reserve reserve);

    public int deleteReserve(@Param("userId") int userId, @Param("roomId") int roomId);

    public List<Reserve> selectByUserId(@Param("userId") int userId);
}
